import request from '@/utils/request'

// 查询工序计划明细列表
export function listBizProductProcessDetail (query) {
  return request({
    url: '/biz/bizProductProcessDetail/list',
    method: 'get',
    params: query
  })
}

// 查询工序计划明细详细
export function getBizProductProcessDetail (id) {
  return request({
    url: '/biz/bizProductProcessDetail/' + id,
    method: 'get'
  })
}

// 新增工序计划明细
export function addBizProductProcessDetail (data) {
  return request({
    url: '/biz/bizProductProcessDetail',
    method: 'post',
    data: data
  })
}

// 修改工序计划明细
export function updateBizProductProcessDetail (data) {
  return request({
    url: '/biz/bizProductProcessDetail',
    method: 'put',
    data: data
  })
}

// 删除工序计划明细
export function delBizProductProcessDetail (id) {
  return request({
    url: '/biz/bizProductProcessDetail/' + id,
    method: 'delete'
  })
}


// 导出工序计划明细
export function exportBizProductProcessDetail (query) {
  return request({
    url: '/biz/bizProductProcessDetail/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizProductProcessDetail/getInitData/' + dictTypes,
    method: 'get'
  })
}


export function getListBizProductProcessDetail (processPlanId) {
  return request({
    url: '/biz/bizProductProcessDetail/listBizProductProcessDetail/' + processPlanId,
    method: 'get'
  })
}